//
//  IoriDictionary.m
//  pushNews
//
//  Created by Jobs on 3/22/17.
//  Copyright © 2017 Iori. All rights reserved.
//

#import "IoriDictionary.h"

@implementation IoriDictionary

@end

@implementation NSMutableDictionary (NewsCategoryEntity)

-(NSString *)getCategoryID
{
    return [self objectForKey:@"channel_id"];
}

-(NSString *)getCategoryName
{
    return [self objectForKey:@"channel_name"];
}

-(NSString *)getCategoryImage
{
    return [self objectForKey:@"channel_pic"];
}

@end

@implementation NSMutableDictionary (Choose)

-(NSMutableArray<NSMutableDictionary *> *)getSelectedItems
{
    return [self objectForKey:@"my_channel"];
}

-(NSMutableArray<NSMutableDictionary *> *)getUnSelectedItems
{
    return [self objectForKey:@"channel_list"];
}

@end
